package triangle;

import java.awt.event.*;

public class GuiListener extends ComponentAdapter {

	
	
	public GuiListener()
	{
		
	}
	
	public void componentResized(ComponentEvent e)
	{
		GUI gui = (GUI) e.getSource();
		gui.removeAll();
		Triangle t = Main.makeStartTri();
		gui.add(t);
		gui.validate();
		Main.makeSierpinski(t, Main.depth);
	}
	
	
}
